import React from 'react'
import axios from '../../../axios/axios';
import './css/index.css'
import Header from '../index/component/header';
import Footer from '../index/component/bottom';
import Searchbar  from '../index/component/searchbar';
import img1 from '../img/4.png';
import img2 from '../img/5.png';
export default function index() {
    let data = ()=>{
        axios.post('http://localhost:3000/fan/pcpay').then(res=>{
            console.log(res,123);
            window.open(res.data.result)
        })
    }
  return (
    <div className='index'>
     <Header></Header>
     <Searchbar></Searchbar>
    <div className='fu-adder'>
    <img src={img1}  />
    <img src={img2}  />
    
    </div>
    <div className='fu-content'>

    <button onClick={() => data()}>点击支付</button>

    </div>
     <Footer></Footer>
    </div>
  )
}
